import { Get,Post } from '../index'

export default {
  getGroupList(params) {
    return new Post('/group/getGroupList',params)
  },
  createGroup(params) {
    return new Post('/group/createGroup',params)
  },
  inviteToGroup(params) {
    return new Post('/group/inviteToGroup',params)
  },
  getGroupUsers(params) {
    return new Post('/group/getGroupUsers',params)
  },
  allocateAuth(params) {
    return new Post('/group/allocateGroupAuth',params)
  },
  deleteUser(params) {
    return new Post('/group/deleteUser',params)
  },
  updateGroup(params) {
    return new Post('/group/updateGroup',params)
  },
  transferGroup(params) {
    return new Post('/group/transferGroup',params)
  },
  dissolutionGroup(params) {
    return new Post('/group/dissolution',params)
  },
  getAuth(params) {
    return new Get(`/group/getAuth/${params}`)
  }
}
